export const rootUrl = "http://8.137.61.186:8000";
export const api = {
	//登录
	login: {
		url: rootUrl + "/login",
		method: 'POST',
	},
	users: {
		url: rootUrl + "/users",
		method: 'GET',
	},
	
	
	//工人
	workers: {
		url: rootUrl + "/workers",
		method: "GET",
	},
	
	
	//订单
	order: {
		url: rootUrl + "/orders",
		method: 'GET',
	},
	workerOrders:{
		url: rootUrl + "/workerOrders",
		method: "PUT",
	},
	
	//地址
	addresses: {
		url: rootUrl + "/addresses",
		method: "GET",
	},
	

	//商品
	products: {
		url: rootUrl + "/products",
		method: 'GET',
	},
	productorders: {
		url: rootUrl + "/product-orders",
		method: 'POST',
	},


	//通知
	notification: {
		url: rootUrl + "/notification",
		method: "PUT"
	},
	//投诉
	complaints: {
		url: rootUrl + "/complaints",
		method: 'GET',
	},
	//同城交易
	localTrades:{
		url: rootUrl + "/localTrades",
		method: "GET",
	},



	//商品信息
	productList: {
		url: rootUrl + "/store",
		method: 'GET',
	},

	productDetail: {
		url: rootUrl + "/store",
		method: 'GET',
	},

	//
	aqiAnlysis: {
		url: rootUrl + "/mothdata",
		method: 'GET',
	},

	getEmailCode: {
		url: rootUrl + "/email",
		method: "POST",
	},

	forgetPassword: {
		url: rootUrl + "/forget",
		method: "POST",
	},

	siteList: {
		url: rootUrl + "/sitelist",
		method: 'GET',
	},
	getdaydata:{
		url: rootUrl + "/getdaydata",
		method: 'GET',
	}
}